package com.sxhalo.fsms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sxhalo.fsms.domain.FactDeviceSpecificAttr;
import com.sxhalo.fsms.domain.FactDeviceSpecificAttrKey;
import com.sxhalo.fsms.mapper.FactDeviceSpecificAttrMapper;
import com.sxhalo.fsms.service.IFactDeviceSpecificAttrService;

@Service
public class FactDeviceSpecificAttrServiceImpl implements IFactDeviceSpecificAttrService {

	@Autowired
	private FactDeviceSpecificAttrMapper mapper;

	@Override
	public Integer insertSelective(FactDeviceSpecificAttr record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(FactDeviceSpecificAttr record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		return mapper.deleteByPrimaryKey((FactDeviceSpecificAttrKey)key);
	}

	@Override
	public FactDeviceSpecificAttr selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey((FactDeviceSpecificAttrKey)key);
	}

	@Override
	public List<FactDeviceSpecificAttr> findWhereList(String where, String order) {
		return mapper.findWhereList(where,order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List<FactDeviceSpecificAttr> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start,length,where,order);
	}

	@Override
	public int deleteByWhere(String where) {
		return mapper.deleteByWhere(where);
	}

	@Override
	public int batchInsert(FactDeviceSpecificAttr record, String ids) {
		return mapper.batchInsert(record,ids);
	}

	@Override
	public int insertOrUpdate(FactDeviceSpecificAttr record) {
		return mapper.insertOrUpdate(record);
	}
}
